home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8591 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.eunet.ch!usenet
  2. From: Patrick Luginbuehl <galifa@dial.eunet.ch>
  3. Newsgroups: comp.lang.c
  4. Subject: HELP! Overlays && DOS with Microsoft C 8.0 (part of VC++ 1.51)
  5. Date: Mon, 04 Mar 1996 22:13:17 -0800
  6. Organization: EUnet AG
  7. Message-ID: <313BDB7D.4588@dial.eunet.ch>
  8. NNTP-Posting-Host: galifa.dial.eunet.ch
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=iso-8859-2
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (Win16; I)
  13.  
  14. I'm triying to overlay some modules in a DOS-project with Microsoft C 8.0 
  15. (part of VC++
  16. 1.51). As I understand the documentation all I have to do is to create a 
  17. proper .DEF file that
  18. contains the modules I want to overlay. Say I've four modules
  19. - testovl.c      // contains main()
  20. - def.h           // prototypes and some globals
  21. - testfunc.c   // functions
  22. - testfun2.c
  23. - testfun3.c
  24. - testfun4.c
  25.  
  26. All testfun*.c files have about the same size and I'd like to overlay 
  27. them. I created an file
  28. TESTOVL.DEF containing:
  29.  
  30. SEGMENTS testfunc_TEXT OVL:1
  31. SEGMENTS testfun2_TEXT OVL:2
  32. SEGMENTS testfun3_TEXT OVL:3
  33. SEGMENTS testfun4_TEXT OVL:4
  34.  
  35. After recompiling the project I got an testovl.exe which is approx. 7KB 
  36. larger than before
  37. (quite normal because of the overlay manager code). But this file 
  38. requires also more RAM to
  39. execute !?
  40. Does anybody have a small piece of code that creates a _working_ EXE-file 
  41. with overlays
  42. (that really needs less memory than if it's compiled to a straight 
  43. EXE-file?
  44.  
  45. HELP! Any suggestions welcome! Please e-mail to galifa@dial.eunet.ch. 
  46. Thanks a lot
  47.  
  48. Patrick
  49.